<?php 
	$javascript->link('common', false);
	$javascript->link('jquery', false);
	$javascript->link('jquery-ui', false);
 	$javascript->link('menu', false);
 	$javascript->link('question-logic', false);
	echo $form->create('Asession', array('action'=>'answer'));
	echo $form->hidden('token',  array( 'value' => $token));
	$the_question = str_replace("\n",'<br />',$question['Question']['question']);

?>

<ul id="sortable" align="center">
<?php 

	foreach ($question['Answer'] as $answer){

		$answer_display = $answer['answer_'.$question['Answervalue']['variable_type']].' '.$question['Answervalue']['abbreviation'];
		echo '<li align="center" class="ui-state-default"><input type="hidden" name="data[Question][answer_id][]" value="'.$answer['id'].'">'.$answer_display.'</li>';
	}

?>
</ul>
